package priv.test;



import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import priv.work.MyConfig;
import priv.work2.XiaoMing;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = MyConfig.class)
public class Work3 {
	@Autowired
	private XiaoMing xiaoming;
	@Test
	public void test1() throws Exception {
		System.out.println(xiaoming);
	}
}
